// lib/types/index.ts

// 导出所有类型
export * from "./generated/auth";

// 通用响应类型
export interface ApiResponse<T = unknown> {
  code: number;
  data: T;
  message: string;
}

// 分页请求参数
export interface PaginationParams {
  page: number;
  pageSize: number;
}

// 分页响应
export interface PaginatedResponse<T> {
  items: T[];
  total: number;
  page: number;
  pageSize: number;
  totalPages: number;
}
